﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace Mindfor.Web.Routing
{
	/// <summary>
	/// Contains regexes for route constraints.
	/// </summary>
	public static class Constraints
	{
		/// <summary>
		/// Is int regex constraint.
		/// </summary>
		public const string IsInt = @"\d+";

		/// <summary>
		/// Is int or null regex constraint.
		/// </summary>
		public const string IsIntOrNull = @"\d*";

		/// <summary>
		/// Is int and more than 1 constraint.
		/// </summary>
		public const string IsIntMore1 = @"(1\d+|[2-9]+)";
	}
}
